
const db  = require("../util/dbutil") 

class chiropracticsql {
    /**
    *构造函数，用于创建 SqlUpdate 对象
    *@param {string} sql - sql
    *@param {object} condition - 请求参数
    */
    constructor(sql, condition) {
        //sql语句
        this.sql = sql
        //请求参数
        this.condition = condition;
       
    }

    PossessionsGetSqlTypes(newcondition = this.condition) {

        return db.query(this.sql).then(res=>{
            console.log(res);
        })
    }

}

module.exports =  chiropracticsql;
